package appnode;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import com.google.appengine.api.users.User;
import com.google.appengine.api.datastore.Key;
import java.util.List;
import java.util.Date;
import appnode.Node;

@PersistenceCapable
public class NodeRatings {
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

@Persistent
private String nodename;

@Persistent
private String owner;

@Persistent
private double commun;

@Persistent
private double collabor;

@Persistent
private double expert;

@Persistent
private Date date;

public NodeRatings(String nodename, String owner, double commun, double collabor, double expert, Date date) {
	this.nodename = nodename;
	this.commun = commun;
	this.collabor = collabor;
	this.expert = expert;
	this.date = date;
	this.owner = owner;
}

public Key getKey() {
	return key;
}

public String getNodename() {
	return nodename;
}

public String getOwner() {
	return owner;
}

public double getCommun() {
	return commun;
}

public double getCollabor() {
	return collabor;
}

public double getExpert() {
	return expert;
}

public Date getDate(){
	return date;
}

public void setNodename(String nodename) {
	this.nodename = nodename;
}

public void setCommun(double commun) {
	this.commun = commun;
}

public void setCollabor(double collabor) {
	this.collabor = collabor;
}

public void setExpert(double expert){
	this.expert = expert;
}

public void setDate(Date date){
	this.date = date;
}


}